@tool
class_name Guard_AnimFinished
extends Guard

@export var anim_name:String

func is_satisfied(transition:Transition,state:State) -> bool:
	if not anim_name:
		anim_name = state.name
	return state.chart.get_expression_property("AnimFinished_" + anim_name, false)

func _init() -> void:
	if Engine.is_editor_hint():
		resource_local_to_scene = true
